package com.example.parkingsharing.ui.components.management

import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.shadow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp

@Composable
fun CarManagement() {
    Column() {
        LazyColumn(){
            items(40) { item ->
                Text(
                    text = "$item",
                    modifier = Modifier
                        .shadow(0.dp, RoundedCornerShape(3.dp))
                        .fillMaxWidth()
                        .wrapContentHeight()
                )
            }
        }
        Row(
            modifier = Modifier.wrapContentHeight(),
            horizontalArrangement = Arrangement.End) {
            Text(
                text = "共有5辆车",
                fontSize = 10.sp,
                color = MaterialTheme.colors.onSurface.copy(0.6f)
            )
        }
    }
}

